import { Pipe, PipeTransform } from "@angular/core";
import { IncidentCategory } from "../../../../../../../shared/models/incidentCategory.enum";
import { ControversyQualitativePerformanceModel } from "../../../../../../../shared/models/qualitativePerformance.model";

@Pipe({
    name: 'incidentsByTheme'
})
export class IncidentsByThemePipe implements PipeTransform {
    transform(data: ControversyQualitativePerformanceModel[], theme: string) {
        return data.filter(x => x.themeName == theme);
    }
}